Page({
  data:{
    yearp:"../img/index/year.png",
    quanp:"../img/index/quan.png",
    qt: "../img/index/qt.png",
    zdzb:"../img/index/zdzb.png",
    bktj:"../img/index/bktj.png",
    ljqg:"../img/index/ljqg.png",
    quan:[
      "../img/index/5.png",
      "../img/index/10.png",
      "../img/index/20.png",
      "../img/index/30.png"
    ],
    zd:[{
      url:"../img/index/b1.png",
      pic:"../img/index/p1.png",
      name:"SD-JR09D绞肉机",
      dec:"双层4维4刀技术",
      li:["耐用","时尚","方便"],
      price:199
    }, {
      url: "../img/index/b2.png",
      pic: "../img/index/p2.png",
      name: "三的 SD-526破壁机",
      dec: "全新不锈钢冷杯",
      li: ["转速快", "大功率", "效果好"],
      price: 479
      }, {
        url: "../img/index/b3.png",
        pic: "../img/index/p3.png",
        name: "SD-LL13榨汁机",
        dec: "全自动小型果汁杯",
        li: ["不串味", "双刀座", "健康"],
        price: 98
    }, {
      url: "../img/index/b4.png",
      pic: "../img/index/p4.png",
      name: "SD-PB101破壁料",
      dec: "智能破壁 12大功能",
      li: ["智能", "大容量", "动力强"],
      price: 398
    }
    ],
    bk:[{
      pic: "../img/index/p1.png",
      reprice:119,
      cuprice:98
    }, {
      pic: "../img/index/p2.png",
      reprice: 1999,
      cuprice: 598
      }, {
        pic: "../img/index/p3.png",
        reprice: 284,
        cuprice: 98
    },{
      pic: "../img/index/p4.png",
      reprice: 865,
      cuprice: 345
    }
    ]
  },
  getQuan(e){
    wx.showToast({
      title: '领券成功',
    })
  },
  zde(e){
    var id = e.currentTarget.id
    console.log(id)
    wx.navigateTo({
      url: '../detail/detail?id='+id,
    })
  },
  onLoad(e){
    wx.getSystemInfo({
      success: function (res) {
        console.log(res.windowWidth)
        console.log(res.windowHeight)
      }
    })
  }
})

